<template>
	<view class="page">
			<mescroll-uni ref="mescrollRef" height="100%" top="0" @init="mescrollInit" :down="downOption" :up="upOption" @down="downCallback"
			 @up="upCallback">
		<view class="tearch_evaluate_box">
			<view class="tearch_evaluate_item">
				<view class="tearch_evaluate_top">
					<view class="tearch_evaluate_left">
						<image src="/static/img/touxiang.jpg" mode=""></image>
					</view>
					<view class="tearch_evaluate_right">
						<view class="tearch_evaluate_right_title">
							A 专业版孙红雷 <text class="date">2019-10-15</text>
						</view>
						<view class="rate">
							<uni-rate class="pingfen" disabled="true" max="5" size="16" activeColor="#fe6a6a" :value="2"></uni-rate>
						</view>
					</view>
				</view>
				<view class="tearch_evaluate_bot">
					<view class="tearch_evaluate_right_content">
						盼望着，盼望着，东风来了，春天的脚步近了。一切都像刚睡醒的样子······
					</view>
					<view class="tearch_evaluate_thumb">
						<scroll-view scroll-x="true" class="scroll">
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
						</scroll-view>
					</view>
				</view>
			</view>
			<view class="tearch_evaluate_item">
				<view class="tearch_evaluate_top">
					<view class="tearch_evaluate_left">
						<image src="/static/img/touxiang.jpg" mode=""></image>
					</view>
					<view class="tearch_evaluate_right">
						<view class="tearch_evaluate_right_title">
							A 专业版孙红雷 <text class="date">2019-10-15</text>
						</view>
						<view class="rate">
							<uni-rate class="pingfen" disabled="true" max="5" size="16" activeColor="#fe6a6a" :value="2"></uni-rate>
						</view>
					</view>
				</view>
				<view class="tearch_evaluate_bot">
					<view class="tearch_evaluate_right_content">
						盼望着，盼望着，东风来了，春天的脚步近了。一切都像刚睡醒的样子······
					</view>
					<view class="tearch_evaluate_thumb">
						<scroll-view scroll-x="true" class="scroll">
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
						</scroll-view>
					</view>
				</view>
			</view>
			<view class="tearch_evaluate_item">
				<view class="tearch_evaluate_top">
					<view class="tearch_evaluate_left">
						<image src="/static/img/touxiang.jpg" mode=""></image>
					</view>
					<view class="tearch_evaluate_right">
						<view class="tearch_evaluate_right_title">
							A 专业版孙红雷 <text class="date">2019-10-15</text>
						</view>
						<view class="rate">
							<uni-rate class="pingfen" disabled="true" max="5" size="16" activeColor="#fe6a6a" :value="2"></uni-rate>
						</view>
					</view>
				</view>
				<view class="tearch_evaluate_bot">
					<view class="tearch_evaluate_right_content">
						盼望着，盼望着，东风来了，春天的脚步近了。一切都像刚睡醒的样子······
					</view>
					<view class="tearch_evaluate_thumb">
						<scroll-view scroll-x="true" class="scroll">
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
							<view class="box">
								<image src="/static/img/1.jpg"></image>
							</view>
						</scroll-view>
					</view>
				</view>
			</view>
		</view>
			</mescroll-uni>
	</view>
</template>

<script>
	import uniRate from '@/components/uni-ui/uni-rate/uni-rate.vue';
	import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
	export default {
		mixins: [MescrollMixin], // 使用mixin (在main.js注册全局组件)
		components:{uniRate},
		data() {
			return {
				downOption: {
					auto: false //是否在初始化后,自动执行downCallback; 默认true
				},
				upOption: {
					auto: true, //是否在初始化后,自动执行downCallback; 默认true
					page: {
						num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
						size: 30, // 每页数据的数量
						time: null // 加载第一页数据服务器返回的时间; 防止用户翻页时,后台新增了数据从而导致下一页数据重复;
					}
				}
			};
		}
	}
</script>
<style>
	page {
		background: #fff;
	}
</style>
<style lang="scss" scoped>
	.tearch_evaluate_box {
		padding: 33rpx;
		.tearch_evaluate_item {
			margin-bottom: 25rpx;
			padding-bottom: 25rpx;
			border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	
			.tearch_evaluate_top {
				display: flex;
				margin-bottom: 10rpx;
	
				.tearch_evaluate_left {
					margin-right: 30rpx;
					flex: 0 0 100rpx;
					width: 100rpx;
					height: 100rpx;
	
					image {
						width: 100rpx;
						height: 100rpx;
						border-radius: 50%;
					}
				}
	
				.tearch_evaluate_right {
					flex: 1;
	
					.tearch_evaluate_right_title {
						font-size: 32rpx;
						color: #565656;
	
						.date {
							font-size: 24rpx;
							float: right;
							color: #ddd;
						}
					}
	
					.rate {
						display: inline-block;
						font-size: 22rpx;
						margin-bottom: 6rpx;
	
						.pingfen {
							display: inline-block;
						}
					}
				}
			}
	
			.tearch_evaluate_bot {
				.tearch_evaluate_right_content {
					padding-bottom: 15rpx;
					font-size: 28rpx;
					color: #B3B3B3;
				}
	
				.tearch_evaluate_thumb {
					.scroll {
						width: 100%;
						overflow: hidden;
						white-space: nowrap;
						box-sizing: border-box;
					}
	
					.box {
						display: inline-block;
						width: 133rpx;
						height: 127rpx;
						margin-right: 25rpx;
						overflow: hidden;
	
						image {
							width: 133rpx;
							min-height: 100%;
						}
					}
				}
			}
		}
	}
</style>
